@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

// search-container,form-container
.search-container,
.form-container {
  background-color: #ffffff;
  padding: 5px 90px 10px 10px;
  position: relative;
  .el-form-item__label {
    padding: 0px;
    line-height: 24px;
    font-weight: normal;
  }
  .el-select {
    width: 100%;
  }
  .el-form-item {
    margin-bottom: 10px;
  }
  .el-form-item__error {
    padding-top: 0px;
  }
  .el-form-item__content {
    line-height: 30px;
  }
}

// 表格样式
.table-container {
  margin-top: 10px;
  padding: 10px 10px 0px 10px;
  background-color: #fff;
  .el-table th {
    background-color: #eff3f8;
    border-bottom: 1px solid #ccc;
  }
  .el-table--border td,
  .el-table--border th,
  .el-table__body-wrapper
    .el-table--border.is-scrolling-left
    ~ .el-table__fixed {
    border-color: #e4e8f3;
  }
  .el-divider {
    margin: 0 9px 0 3px;
  }
  .borderLeft {
    border-left: 1px solid #e4e8f3;
  }
  .el-table--scrollable-x .el-table__body-wrapper {
    z-index: 2;
  }
  .el-table--mini th {
    padding: 2px 0;
  }
  .el-table td,
  .el-table th {
    padding: 5px 0;
  }
  .el-pagination {
    text-align: right;
    margin-right: 10px;
    padding: 7px 5px;
  }
  // 表格行上的按钮样式
  .el-table__row {
    .el-button--mini {
      padding: 4px 10px;
    }
  }
}

// 弹出框样式
.dialog-container {
  // 标题
  .el-dialog__header {
    border-bottom: 1px solid #ccc;
  }
  // 内容
  .el-dialog__body {
    padding: 10px;
    background-color: #eef4f9;
  }
  // 底部
  .el-dialog__footer {
    border-top: 1px solid #ccc;
    .dialog-footer {
      text-align: center;
    }
  }
}
